import request from '@/utils/request'

// 查询工作业绩信息列表
export function listWorkAchievements(query) {
  return request({
    url: '/profession/workAchievements/list',
    method: 'get',
    params: query
  })
}

// 查询工作业绩信息详细
export function getWorkAchievements(id) {
  return request({
    url: '/profession/workAchievements/' + id,
    method: 'get'
  })
}

// 新增工作业绩信息
export function addWorkAchievements(data) {
  return request({
    url: '/profession/workAchievements',
    method: 'post',
    data: data
  })
}

// 修改工作业绩信息
export function updateWorkAchievements(data) {
  return request({
    url: '/profession/workAchievements',
    method: 'put',
    data: data
  })
}

// 删除工作业绩信息
export function delWorkAchievements(id) {
  return request({
    url: '/profession/workAchievements/' + id,
    method: 'delete'
  })
}
